{adminMenuBar}
<style>
.partnerTable {
	border-width: 1px;
	border-spacing: 0px;
	border-style: inset;
	border-color: gray;
	border-collapse: collapse;
	background-color: white;
}

.partnerTable th {
	border-width: thin;
	padding: 5px;
	border-style: inset;
	border-color: gray;
	background-color: white;
	-moz-border-radius:;
}

.partnerTable td {
	border-width: thin;
	padding: 5px;
	border-style: inset;
	border-color: gray;
	background-color: white;
	-moz-border-radius:;
}
</style>
<h3>Partners</h3>
<p>
Only trusted Partners (listed here) can access "send data" APIs (For example Messaging and Rating Items)<br>
To allow access for search and item data request just create an access token without partner id on the "Service API" site.
</p>

<table width="100%">
	<tr>
		<td width="550" valign="top">
			<table class="partnerTable" width="500" border="0"
				style="margin-top: 10px;">
				<tr>
					<th align="center">ID</th>
					<th align="left">Name</th>
					<th align="left">URL</th>
					<th align="left">Comment</th>
					<th align="left">Token</th>
					<!--<th></th>-->
				</tr>
				{partnerList}
			</table>
		</td>
		<td valign="top" style="padding-top: 10px;">
			<b>Add Partner:</b>
			<form action="/admin/partnerApps" method="POST">
			<input type="hidden" name="randomKey" value="{randomKey}">
			<input type="hidden" name="action" value="addPartner">
			<table width="100%">
				<tr>
					<td align="right">Application Name*:</td>
					<td>
						<input type="text" name="appName" id="appName">
					</td>
				</tr>
				<tr>
					<td align="right">Secure Token*:</td>
					<td>
						<input type="text" name="appToken" id="appToken">
					</td>
				</tr>
				<tr>
					<td align="right">URL*:</td>
					<td>
						<input type="text" name="appUrl" id="appUrl">
					</td>
				</tr>
				<tr>
					<td align="right">Comment:</td>
					<td>
						<input type="text" name="appComment" id="appComment">
					</td>
				</tr>
				<tr>
					<td align="center" colspan="2">
						<input type="submit" value="Add Partner">
					</td>
				</tr>
			</table>
			</form>
			<b>Change Partner:</b>
			<form action="/admin/partnerApps" method="POST">
			<input type="hidden" name="randomKey" value="{randomKey}">
			<input type="hidden" name="action" value="savePartner">
			<table width="100%">
				<tr>
					<td align="right">Partner ID*:</td>
					<td>
						<input type="text" name="partnerId" id="partnerId">
					</td>
				</tr>
				<tr>
					<td align="right">Access Key*:</td>
					<td>
						<input type="text" name="partnerKey" id="partnerKey" value="">
					</td>
				</tr>
				<tr>
					<td align="right">App URL*:</td>
					<td>
						<input type="text" name="partnerUrl" id="partnerUrl" value="">
					</td>
				</tr>
				<tr>
					<td align="center" colspan="2">
						<input type="submit" value="Change">
					</td>
				</tr>
			</table>
			</form>
		</td>
	</tr>
</table>


